package com.joehongfa.util;

import java.sql.SQLException;

import org.apache.commons.dbutils.QueryRunner;

public class SaveXZCFToDb {
	static QueryRunner qr;
	static {
		qr = new QueryRunner(JdbcUtil.getDataSource());
	}

	public static void save(Object... params) {
		String sql = "insert into XZCF(punishedBehavior,punishedCategory,basis,dutyItem,remark,orgName) values(?,?,?,?,?,?)";
		try {
			qr.update(sql, params);
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}
